package com.tjzd.javalearn;

public class User {
    String name;
    String password;
    String email;
    String gender;
    int age;

    public User() {
    }

    public User(String name, String password, String email, String gender, int age) {
        this.name = name;
        this.password = password;
        this.email = email;
        this.gender = gender;
        this.age = age;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return email
     */
    public String getEmail() {
        return email;
    }

    /**
     * 设置
     * @param email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 获取
     * @return gender
     */
    public String getGender() {
        return gender;
    }

    /**
     * 设置
     * @param gender
     */
    public void setGender(String gender) {
        this.gender = gender;
    }

    /**
     * 获取
     * @return age
     */
    public int getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(int age) {
        this.age = age;
    }

     //这个后面学
    public String toString() {
        return "User{name = " + name + ", password = " + password + ", email = " + email + ", gender = " + gender + ", age = " + age + "}";
    }
   /* public User(){}
    public User(String nane,String password,String email,String gender,int age)
    {
        this.name=name;
        this.password=password;
        this.email=email;
        this.gender=gender;
        this.age=age;
    }
    public void setName(String name)
    {
        this.name=name;
    }
    public String grtName()
    {
        return name;
    }*/

}
